import request from '@/utils/request'

let url = '/pssd/examine/';
/*
export function getPurchase(purchaseDocuments) {
  return request({
    url: url ,
    method:'get',

  })
}*/



// 查询公告列表
export function listPurchase(query) {
  return request({
    url: url + 'list',
    method: 'get',
    params: query
  })
}

// 查询公告详细
export function getPurchase(drugId) {
  return request({
    url: url + drugId,
    method: 'get'
  })
}

// 新增公告
export function addDrug(data) {
  return request({
    url: url + "add",
    method: 'put',
    data: data
  })
}

/*// 修改公告
export function updateDrug(data) {
  return request({
    url: url ,
    method: 'put',
    data: data
  })
}*/


//修改状态
export function statusUpdate(data) {
  return request({
    url: url + data,
    method:'put'
  })
}
// 删除公告
export function delPurchase(purchaseIds) {
  return request({
    url: url + purchaseIds,
    method: 'delete'
  })
}
